import pytest

from api.login.login_api import LoginAPI
from config import monitor_user, monitor_pwd


@pytest.fixture(scope="session")
def start_login():
    login_body={"username":monitor_user,"password":monitor_pwd,"hashData":""}
    login_resp = LoginAPI.login(login_body)
    token = login_resp.json().get("data").get("token")
    return "Bearer "+token


